﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace SYcwpb.Models
{
    public class LoginModel
    {
        public static LoginModel CreateLoginModel()
        {
            return new LoginModel();
        }

        public static LoginModel CreateLoginModel(
            string _userId,
            string _userName,
            string _pasWrd,
            string _department,
            string _departName,
            string _postName,
            string _line,
            string _id)
        {
            return new LoginModel()
            {
                UserID = _userId,
                UserName = _userName,
                PasWrd = _pasWrd,
                Depart = _department,
                DepartName = _departName,
                PostName = _postName,
                Line = _line,
                ID=_id
            };
        }

        public string UserID { get; set; }

        public string UserName { get; set; }

        public string PasWrd { get; set; }
        public string ID { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string DepartName { get; set; }

        /// <summary>
        /// 岗位ID
        /// </summary>
        public string Depart{ get;set;}

        /// <summary>
        /// 职务
        /// </summary>
        public string PostName { get; set; }

        public string Line { get; set; }
    }

    class Department
    {
        public static Department CreateDepartment()
        {
            return new Department();
        }

        public string ID { get; set; }
        public string Name { get; set; }
    }
}
